package zeroj.helper;

/**
 * 
 * @author LYL(lyl at bitcomm dot cn)
 * 
 * @since 1.0
 *
 * 2008-9-23
 */
public class UrlHelper {

	public static String append(String url, String key, String value) {
		
		StringBuilder sb = new StringBuilder(key).append('=').append(value);
		if(url.indexOf('?') > 5)
			url += '&' + sb.toString();
		else
			url += '?' + sb.toString();
		return url;
	}
}
